def avg(*args):
    return sum(args) / len(args)

# 测试函数
print(avg(1, 2, 3))  # 返回 2.0
print(avg(2, 4, 6, 8, 10))  # 返回 6.0

